< previous page page_62 next page >

Page 62
Common Option Button Properties
Table 3.8 lists the properties changed most often for the option button control.
Table 3.8 Common Option Button Properties.
PropertyDescription
AlignmentThis property can be set to Left Align or Right Align. This determines on which side of the text the option button will appear.
CaptionSet this property to the text that you want to have appear next to the option button.
NameSet this property to the value you want to use to refer to this control in your code. You should preface the name with the letters opt.
PictureThis property can be set to a bitmap, GIF, or JPEG file if youve set the Style property to 1-Graphical. The picture will be displayed beside the option button instead of the text in the Caption property.
StyleSet this property to 0-Standard if you want to display text beside the option button, or you can set the property to 1-Graphical if you want to display a picture beside the option button.
ValueWhen this property is set to True, the option button is selected by default. Only one option button in a group may be set to True at one time.

Check Boxes
A check box allows the user to select one or more choices from a list of values. These choices are not mutually exclusive like the choices for the option buttons are; instead, you may have multiple values selected at the same time.
EXERCISE
Adding Check Boxes
1. Add another frame next to the Sex frame.
2. Set the Name property to fraBenefits.
3. Change the Caption property to Benefits.

 
< previous page page_62 next page >

If you like this book, buy it!